package light.head.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 资产报废 
 *
 */
@Entity
@Table
public class Scrapped implements Serializable {
	
	private static final long serialVersionUID = 8502555612860494828L;
	
	
	private Integer code;
	private Integer cu;						// 物品编号
	private Date ct;
	private String reason;						// 报废原因
	//private Boolean affirm;					// 是否确认
	private Boolean deleted;
	
	private String cn;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column(length = 200)
	public String getReason() {
		return reason;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	
	
	public Integer getCu() {
		return cu;
	}
	public Date getCt() {
		return ct;
	}
	public String getCn() {
		return cn;
	}
	
	
	
	
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setCn(String cn) {
		this.cn = cn;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	
	

}
